; * src/keymap.c: Fix last change (bug#75219).
authorEli Zaretskii <eliz@gnu.org>
Sun, 12 Jan 2025 06:24:39 +0000 (08:24 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 28 Feb 2025 07:54:10 +0000 (09:54 +0200)
(cherry picked from commit 412c1a4f0e1df8c82bd94f02e21c1ef62b3d53d5)

src/keymap.c

index 634c4e33bbd238e22d3a78de1dd47ff45912735e..6b266bb5736c55a6def2793f2cdaba6977e6ccae 100644 (file)
@@ -1740,7 +1740,6 @@ like in the respective argument of `key-binding'.  */)
          if (CONSP (string) && STRINGP (XCAR (string)))
            {
              Lisp_Object pos = XCDR (string);
-             Lisp_Object pos_area = POSN_POSN (position);
              string = XCAR (string);
              if (FIXNUMP (pos)
                  && XFIXNUM (pos) >= 0
@@ -1748,6 +1747,7 @@ like in the respective argument of `key-binding'.  */)
                {
                  Lisp_Object map = Fget_text_property (pos, Qlocal_map,
                                                        string);
+                 Lisp_Object pos_area = POSN_POSN (position);
                  /* For clicks on mode line or header line, override
                     the maps we found at POSITION unconditionally, even
                     if the corresponding properties of the mode- or